package com.spi.soconversion.orders.conversion;

public enum InvalidItemTypes {

	LAB("LAB"),
	REC("REC"),
	RPC("RPC"),
	RLC("RLC"),
	CLASS("CLASS"),
	CONFIG("CONFIG"),
	DPAF("DPAF"),
	INCLUDED("INCLUDED"),
	KIT("KIT"),
	MODEL("MODEL"),
	EXP("EXP"),
	NHBC("NHBC"),
	OPTION("OPTION"),
	P("P"),
	SERVICE("SERVICE"),
	STANDARD("STANDARD"),
	USE("USE"),
	SUITE("SUITE"),
	VM("VM"),
	WR("WR");
	
	private String beanProperty;
	
	private InvalidItemTypes(String beanProperty) {
		this.beanProperty= beanProperty;
	}

	public String getBeanProperty() {
		return beanProperty;
	}
	
	public static InvalidItemTypes getItemType(String code) {
		for (InvalidItemTypes sct : InvalidItemTypes.values()) {
			if (sct.getBeanProperty().equals(code)) {
				return sct;
			}
		}
		return null;
	}
}
